<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'alarmsystem-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'FireAlarmProvided'); ?>
		<?php echo $form->textField($model,'FireAlarmProvided'); ?>
		<?php echo $form->error($model,'FireAlarmProvided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FireAlarmType'); ?>
		<?php echo $form->textField($model,'FireAlarmType'); ?>
		<?php echo $form->error($model,'FireAlarmType'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Centralized'); ?>
		<?php echo $form->textField($model,'Centralized'); ?>
		<?php echo $form->error($model,'Centralized'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LocationOfCentralControl'); ?>
		<?php echo $form->textArea($model,'LocationOfCentralControl',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'LocationOfCentralControl'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NoOfBellsPerFloor'); ?>
		<?php echo $form->textField($model,'NoOfBellsPerFloor'); ?>
		<?php echo $form->error($model,'NoOfBellsPerFloor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LocationOfBells'); ?>
		<?php echo $form->textArea($model,'LocationOfBells',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'LocationOfBells'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Coverage'); ?>
		<?php echo $form->textField($model,'Coverage'); ?>
		<?php echo $form->error($model,'Coverage'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CoverageOthers'); ?>
		<?php echo $form->textField($model,'CoverageOthers',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'CoverageOthers'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Monitored'); ?>
		<?php echo $form->textField($model,'Monitored'); ?>
		<?php echo $form->error($model,'Monitored'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TypesOfInitiativeDevice'); ?>
		<?php echo $form->textField($model,'TypesOfInitiativeDevice'); ?>
		<?php echo $form->error($model,'TypesOfInitiativeDevice'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TypesOfInitiativeDeviceOthers'); ?>
		<?php echo $form->textField($model,'TypesOfInitiativeDeviceOthers',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'TypesOfInitiativeDeviceOthers'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NoOfPullStations'); ?>
		<?php echo $form->textField($model,'NoOfPullStations'); ?>
		<?php echo $form->error($model,'NoOfPullStations'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SmokeDetectors'); ?>
		<?php echo $form->textField($model,'SmokeDetectors'); ?>
		<?php echo $form->error($model,'SmokeDetectors'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SmokeDetectorNoOfUnits'); ?>
		<?php echo $form->textField($model,'SmokeDetectorNoOfUnits'); ?>
		<?php echo $form->error($model,'SmokeDetectorNoOfUnits'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SmokeDetectorIntegrated'); ?>
		<?php echo $form->textField($model,'SmokeDetectorIntegrated'); ?>
		<?php echo $form->error($model,'SmokeDetectorIntegrated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'HeatDetectors'); ?>
		<?php echo $form->textField($model,'HeatDetectors'); ?>
		<?php echo $form->error($model,'HeatDetectors'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'HeatDetectorsNoOfUnits'); ?>
		<?php echo $form->textField($model,'HeatDetectorsNoOfUnits'); ?>
		<?php echo $form->error($model,'HeatDetectorsNoOfUnits'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'HeatDetectorsIntegrated'); ?>
		<?php echo $form->textField($model,'HeatDetectorsIntegrated'); ?>
		<?php echo $form->error($model,'HeatDetectorsIntegrated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PowerSourceDetectors'); ?>
		<?php echo $form->textField($model,'PowerSourceDetectors'); ?>
		<?php echo $form->error($model,'PowerSourceDetectors'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PowerSourceDetectorsOthers'); ?>
		<?php echo $form->textField($model,'PowerSourceDetectorsOthers',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'PowerSourceDetectorsOthers'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PowerSourceDetectorsTotal'); ?>
		<?php echo $form->textField($model,'PowerSourceDetectorsTotal'); ?>
		<?php echo $form->error($model,'PowerSourceDetectorsTotal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DateLastTested'); ?>
		<?php echo $form->textField($model,'DateLastTested'); ?>
		<?php echo $form->error($model,'DateLastTested'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Establishment_Id'); ?>
		<?php echo $form->textField($model,'Establishment_Id'); ?>
		<?php echo $form->error($model,'Establishment_Id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->